package tech.swh.ssm.common;
import java.io.File;
import java.util.Locale;

import org.springframework.web.servlet.view.InternalResourceView;

public class HtmlViewResolver extends InternalResourceView{

	@Override
	public boolean checkResource(Locale locale) {
		File file=new File(this.getServletContext().getRealPath("/")+getUrl());
		return file.exists();			//判断页面是否存在
	}
}
